﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Core;

namespace BrokerBase.Lib.Product
{
    public enum RateFactorAxis { Col = 0, Row = 1 }

    public interface IRateFactor : IConverterTypeInfo<IRateFactorConverter>
    {
        /// <summary>
        /// 所属产品
        /// </summary>
        IProduct Owner { get; set; }
        /// <summary>
        /// 坐标
        /// </summary>
        RateFactorAxis Axis { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        string Name { get; set; }
        /// <summary>
        /// 成员名称字符，以";"分割
        /// </summary>
        string Items { get; set; }

        string[] GroupItems { get; }
        /// <summary>
        /// 是否有关联的转化器
        /// </summary>
        bool IsHasConverter { get; }
        /// <summary>
        /// 是否是阶梯保额
        /// </summary>
        bool IsLadderConverter { get; }

        bool IsEmpty { get; }

        bool IsDisplay { get; }

        string GetDefaultItem();

    }
}
